import request from "../../utils/request";
export const getEmployer=(data)=>{
    return request({
        url: '/employ/getEmployer',
        method: 'get',
        params: {
            account:data
        }
    })
}
export const updateEmployer=(data)=>{
    return request({
        url: '/employ/updateEmployer',
        method: 'post',
        data:data
    })
}

export const getWorkPostList=(data)=>{
    return request({
        url: '/workPost/getEmployerWorkPost',
        method: 'get',
        params: {
            account:data,
        }
    })
}
export const updateWorkPost=(data)=>{
    return request({
        url: '/workPost/updateWorkPost',
        method: 'post',
        data:data
    })
}
export const addWorkPost=(data)=>{
    return request({
    url: '/workPost/addWorkPost',
    method: 'post',
    data:data
})
}
export const deleteWorkPost=(data)=>{
    return request({
        url: '/workPost/deleteWorkPost',
        method: 'post',
        data:data
    })
}

//获取三个突出人物：实习、项目、比赛
export const getThreeBest=(data) =>{
    return request.get("/workPost/getThreeBest", {params : data})
}

//获取可选的专业列表
export const getMajorList=(data) =>{
    return request.get("/workPost/getMajorList", {params : data})
}

//获取可选的意向岗位列表
export const getIntendedPosition=(data) =>{
    return request.get("/workPost/getIntendedPosition", {params : data})
}

//获取优秀人才列表
export const getExcellentTalents=(data) =>{
    return request.get("/workPost/getExcellentTalents", {params : data})
}

//获取公告信息
export const getAnnouncementList=(data) =>{
    return request.get("/admin/announcementList", {params : data})
}